package com.lwj.liwanjia.view.activity.myindent;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.lwj.liwanjia.R;
import com.lwj.liwanjia.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class SeatUnoderDetailActivity extends BaseActivity {

    @BindView(R.id.status_bar)
    RelativeLayout statusBar;
    @BindView(R.id.iv_left)
    ImageView ivLeft;
    @BindView(R.id.tv_left)
    TextView tvLeft;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.iv_right)
    ImageView ivRight;
    @BindView(R.id.tv_right)
    TextView tvRight;
    @BindView(R.id.head_layout)
    RelativeLayout headLayout;
    @BindView(R.id.iv_canting)
    ImageView ivCanting;
    @BindView(R.id.tv_canting_name)
    TextView tvCantingName;
    @BindView(R.id.tv_shangjia_phone)
    TextView tvShangjiaPhone;
    @BindView(R.id.tv_phone)
    TextView tvPhone;
    @BindView(R.id.rl_info)
    RelativeLayout rlInfo;
    @BindView(R.id.tv1)
    TextView tv1;
    @BindView(R.id.tv_name)
    TextView tvName;
    @BindView(R.id.tv_kehu_phone)
    TextView tvKehuPhone;
    @BindView(R.id.tv3)
    TextView tv3;
    @BindView(R.id.tv_baojian_renshu)
    TextView tvBaojianRenshu;
    @BindView(R.id.tv_yuding_renshu)
    TextView tvYudingRenshu;
    @BindView(R.id.tv4)
    TextView tv4;
    @BindView(R.id.tv_yuding_time)
    TextView tvYudingTime;
    @BindView(R.id.tv5)
    TextView tv5;
    @BindView(R.id.tv_fankui)
    TextView tvFankui;
    @BindView(R.id.rl_fanKui)
    RelativeLayout rlFanKui;
    @BindView(R.id.tv_quxiao_indent)
    TextView tvQuxiaoIndent;
    @BindView(R.id.tv_minute)
    TextView tvMinute;
    @BindView(R.id.tv_second)
    TextView tvSecond;
    @BindView(R.id.ll_topay)
    LinearLayout llTopay;
    @BindView(R.id.tv_call)
    TextView tvCall;
    @BindView(R.id.ll_bottom)
    LinearLayout llBottom;

    private String type1;
    private String type;

    @Override
    protected void initView() {
        type1 = getIntent().getStringExtra("type1");
        type = getIntent().getStringExtra("type");
        if (type1.equals("0")) {
            rlFanKui.setVisibility(View.VISIBLE);
        }
        tvLeft.setVisibility(View.VISIBLE);
        tvTitle.setText("预约订座");
        llTopay.setVisibility(View.GONE);
        tvCall.setVisibility(View.VISIBLE);
         if (type.equals("已接单")) {
            rlFanKui.setVisibility(View.VISIBLE);
             tvFankui.setText("同意预约");
        }
    }

    @Override
    protected void initData() {

    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_seat_unoder_detail;
    }

    @OnClick(R.id.tv_left)
    public void onViewClicked() {
        finish();
    }
}
